package cn.wb.base.listen.two;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@AllArgsConstructor
@Getter
public enum RequireTypeEum {

    GET("GetMapping"),
    PUT("PutMapping"),
    DELETE("DeleteMapping"),
    POST("PostMapping"),
    PATCH("PatchMapping");

    private String code;
//    private String des;

    public static List<String> list(){
       return Arrays.stream(RequireTypeEum.values()).map(value->value.code).collect(Collectors.toList());
    }

}
